﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace Twofolders
{
    public partial class BackupErrorForm : Form
    {
        private List<string> m_errors;

        private string m_folderPairName;

        public BackupErrorForm(List<string> errors, string folderPairName)
        {
            InitializeComponent();
            m_errors = errors;
            m_folderPairName = folderPairName;
        }

        private void BackupErrorForm_Load(object sender, EventArgs e)
        {
            Text = Text += string.Format(" for '{0}'", m_folderPairName);

            foreach (string error in m_errors)
            {
                m_listView.Items.Add(new ListViewItem(error));
            }
        }
    }
}
